<?php
	include("data/xl_du_lieu.php");
	include("data/class_paging_1.php");
	$xl_dl = new xl_du_lieu;
	$mang_st=$xl_dl->danh_sach_sieu_thi_dia_oc();
	$mang_da=$xl_dl->danh_sach_du_an();
	$mang_dt=$xl_dl->danh_sach_logo();
	$mang_ttd=$xl_dl->danh_sach_tin_tieu_diem();
	$mang_tt=$xl_dl-> danh_sach_tin_tuc();
	$mang_km=$xl_dl->danh_sach_khuyen_mai();
	$mang_gt=$xl_dl->danh_sach_gioi_thieu();
	$mang_ol=$xl_dl->danh_sach_online();
	$mang_t=$xl_dl->danh_sach_tinh_thanh();
	$mang_qh=$xl_dl->danh_sach_quan_huyen();
	$mang_pt=$xl_dl->danh_sach_phong_thuy();
	$mang_pl=$xl_dl->danh_sach_phap_ly();
	$mang_tltt=$xl_dl->danh_sach_the_loai_tin_tuc();
	$mang_lda=$xl_dl->danh_sach_loai_du_an();
	$mang_dotc=$xl_dl->danh_sach_dia_oc_hien_trang_chu();
	$mang_do=$xl_dl->danh_sach_dia_oc();
	$mang_lkw=$xl_dl->danh_sach_lien_ket_web();
	
?>
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-base.css" />
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-topbar.css" />
<link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-sidebar.css" />
<script type="text/javascript" src="ddlevelsfiles/ddlevelsmenu.js"></script>
<script language="JavaScript">
<!--
// Store the date In avarlable
d = new Date()
dateText = ""
// Get the cuurent day and convert it to the name of the day
dayValue = d.getDay()
if(dayValue == 0)
dateText += "Chủ Nhật, Ngày "
else if (dayValue == 1)
dateText += "Thứ hai, Ngày "
else if (dayValue == 2)
dateText += "Thứ Ba, Ngày "
else if (dayValue == 3)
dateText += "Thứ Tư, Ngày "
else if (dayValue == 4)
dateText += "Thứ Năm, Ngày "
else if (dayValue == 5)
dateText += "Thứ Sáu, Ngày "
else if (dayValue == 6)
dateText += "Thứ Bảy, Ngày "
// Get the current date; if it's before 2000,add 1900
dateText +=d.getDate()
// lấy tháng hiện tại và chuyển nó sang tháng theo tiếng Việt Nam
monthValue =d.getMonth()
dateText += ""
if (monthValue == 0)
dateText += " - 1"
if (monthValue == 1)
dateText += " - 2"
if (monthValue == 2)
dateText += " - 3"
if (monthValue == 3)
dateText += " - 4"
if (monthValue == 4)
dateText += " - 5"
if (monthValue == 5)
dateText += " Tháng 6"
if (monthValue == 6)
dateText += " - 7"
if (monthValue == 7)
dateText += " - 8"
if (monthValue == 8)
dateText += " - 9"
if (monthValue == 9)
dateText += " - 10"
if (monthValue == 10)
dateText += " - 11"
if (monthValue == 11)
dateText += " -12"
// Get the current year; if it's before 2000, add 1900
if (d.getYear() < 2000)
dateText += " - " + (1900 + d.getYear())
else
dateText += " - " + (d.getYear())
// Get the current minutes
minuteValue = d.getMinutes()
if (minuteValue < 10)
minuteValue = "0" + minuteValue
// Get the current hours
hourValue = d.getHours()
// Customize the greeting based on the current hours
// Write the greeting, the date, and the time to the page
-->
</script>
<table align="center" width="972" border="0" cellpadding="0" cellspacing="0" bgcolor="#0485eb">
  <tr>
  <td valign="top">
	<div id="ddtopmenubar" class="mattblackmenu">
		<ul>
		<li><a href="index.php" style="border-left:1px solid #0485eb;">
		<?php 
				
					echo'TRANG CHỦ';
				
			?>
			</a></li>
			<li><a href="about.php">
		<?php 
				
					echo'GIỚI THIỆU';
				
			?>
			</a></li>
		<li><a href="#" rel="ddsubmenu1">
		<?php 
				echo 'DỰ ÁN';
				
			?>
		</a></li>
		
		<li><a href="phap_ly.php">
		<?php 
				echo 'PHÁP LÝ';
				
			?>
		
		</a></li>
		
		<li><a href="#" rel="ddsubmenu2">
		<?php 
				echo 'TIN TỨC';
				
			?>
		
		</a></li>
		<li><a href="phong_thuy.php">
		<?php 
				echo 'PHONG THỦY';
				
			?>
		
		</a></li>
		<li><a href="contact.php">
		<?php 
				echo 'LIÊN HỆ';
				
			?>
		</a></li>
		
		
		</ul>
		</div>
  </td>
  <td class="thu_ngay"><script>document.write(  dateText + " ")</script></td>
  </tr>
</table>
<script type="text/javascript">
	ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar")
</script>
<ul id="ddsubmenu1" class="ddsubmenustyle">
		<?php
			foreach($mang_lda as $row)
			{
				echo'<li><a href="du_an.php?MLDA='.$row[ma_loai_da].'">'.$row[ten_loai_da].'</a></li>';
				
			}
		?>
		</ul>
<ul id="ddsubmenu2" class="ddsubmenustyle">
		<?php
			foreach($mang_tltt as $row)
			{
				echo'<li><a href="news.php?MLTT='.$row[ma_the_loai_tt].'">'.$row[ten_the_loai_tt].'</a></li>';
				
			}
		?>
		</ul>